package cn.stockinclient.Client;

import cn.stockinclient.model.StockIn;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class StockInFallback implements StockInClient{
    @Override
    public StockIn findByStockInId(Long stockInId){
        log.info("findByStockInId callback");
        StockIn stockIn = new StockIn();
        stockIn.setOrderNo("error");
        return null;
    }

    @Override
    public List<StockIn> queryAllStockIn() {
        log.info("queryAllStockIn callback");
        return null;
    }

    @Override
    public boolean deleteStockIn(Long stockInId) {
        log.info("deleteStockIn callback");
        return false;
    }

    @Override
    public boolean addNewStockIn(StockIn stockIn) {
        log.info("addNewStockIn callback");
        return false;
    }

    @Override
    public boolean updateStockIn(StockIn stockIn) {
        log.info("updateStockIn callback");
        return false;
    }
}
